function Person(name) {
    this.name = name;
}
function Mother() {}
Mother.prototype = {
    age: 18,
    home: ["Beijing"]
};
Person.prototype = new Mother();

let li = new Person("李博文");
li.age = 28;

let deng = new Person("邓晓波");

console.log(li, deng);

function refreshPhone() {
    let padding = 60;
    let phone = document.querySelector(".iphone");
    let maxHeight = document.body.clientHeight - padding;

    phone.style.height = maxHeight + "px";
    phone.style.width = maxHeight / 1.92 + "px";
}

window.onload = () => {
    refreshPhone();
};

window.onresize = () => {
    refreshPhone();
};
